﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin.master" CodeFile="ViewJobsApplied.aspx.cs"
    Inherits="ViewJobsApplied" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
</asp:Content>
<asp:Content ID="contentbody" ContentPlaceHolderID="cphMainBody" runat="server">
    <table width="100%">
        <tr>
            <td valign="bottom" class="leftheading" colspan="2" align="left">
                <img src="images/headingbullet.gif" width="14" height="14">
                UPDATE JOB STATUS
            </td>
        </tr>
        <tr>
            <td class="leftsectionunderline" colspan="2">
                <img src="images/spacer.gif" width="1" height="1">
            </td>
        </tr>
    </table>
    <asp:Panel ID="pnlStatusChange" runat="Server" GroupingText="Change Status" Visible="False"
        Width="100%">
        <table style="width: 100%;">
            <tr>
                <td class="tdstyle">
                    Status
                </td>
                <td class="tdstyle">
                    <asp:DropDownList CssClass="ddl" ID="ddlStatus" runat="Server">
                        <asp:ListItem Text="Not Seen" Value="1">
                        </asp:ListItem>
                        <asp:ListItem Text="Seen" Value="2">
                        </asp:ListItem>
                        <asp:ListItem Text="On Hold" Value="3">
                        </asp:ListItem>
                        <asp:ListItem Text="Selected" Value="4">
                        </asp:ListItem>
                        <asp:ListItem Text="Rejected" Value="5">
                        </asp:ListItem>
                    </asp:DropDownList>
                    <asp:HiddenField ID="hfJobAppliedId" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle">
                    Comment
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtComment" runat="Server" Width="250px">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdstyle">
                </td>
                <td class="tdstyle">
                    <asp:Button class="CSSButton" ID="btnStatusChange" runat="Server" Text="Change Status"
                        OnClick="btnStatusChange_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <table style="width: 100%;">
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" colspan="2">
                <asp:GridView ID="grdViewJobsApplied" runat="server" AutoGenerateColumns="false" GridLines="Both"
                    CssClass="griddiv" CellPadding="3" ForeColor="Black" OnRowCommand="grdViewJobsApplied_RowCommand"
                    OnRowDataBound="grdViewJobsApplied_RowDataBound">
                    <Columns>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="CANDIDATE_NAME" HeaderText="Candidate Name" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_ID" HeaderText="Job Code" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="EMAIL" HeaderText="Email" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="MOBILE" HeaderText="Mobile" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="PHONE" HeaderText="Phone" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="EXPERIENCE" HeaderText="Experience" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_TITLE" HeaderText="Job Title" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_DESCRIPTION" HeaderText="Job Description" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="SKILLS_REQUIRED" HeaderText="Skills Required" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="FUNCTIONAL_AREA" HeaderText="Functional Area" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_POSTED_ON" HeaderText="Job Posted On" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="COMMENT" HeaderText="Employer Comment" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="STATUS" HeaderText="Current Status" />
                        <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Change Status">
                            <ItemTemplate>
                                <center>
                                    <asp:ImageButton ID="lnkChangeStatus" ImageUrl="~\images\Edit.jpg" runat="Server"
                                        CommandName="ChangeStatus" CommandArgument='<%# Eval("JOB_APPLIED_ID") %>' AlternateText="Change Status">
                                    </asp:ImageButton>
                                </center>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    
                    <FooterStyle BackColor="#CCCCCC" />
                     <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle  Font-Bold="True"  />
                    <HeaderStyle CssClass="greedhead" Font-Bold="True" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
